package Dungeoneering.Doors;

import org.powerbot.game.api.wrappers.Tile;

import Dungeoneering.Entities.Door;
import Dungeoneering.Entities.Key;
import Dungeoneering.Entities.Room;
import Dungeoneering.Entities.Room.Direction;

/**
 * Door that requires a key to open
 * @author Nicolaas
 *
 */
public class KeyDoor extends Door{

	private Key key;
	
	public KeyDoor(Room parent, Direction dir, Key key, Tile tile) {
		super(parent, dir, tile);
		this.key = key;		
	}
	
	public Boolean openDoor() {
		
		// TODO Needs Pathfind implementation
			return true;
	}

	@Override
	public DoorType getType() {
		return DoorType.KEYDOOR;
	}
	
	public Key getKey() {
		return key;
	}
}
